package io.renren.modules.dictionary.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.dictionary.dao.DictypesDao;
import io.renren.modules.dictionary.entity.DictypesEntity;
import io.renren.modules.dictionary.service.DictypesService;



/**
 * @author 杨帅
 */
@Service("dictypesService")
public class DictypesServiceImpl implements DictypesService {
	@Autowired
	private DictypesDao dictypesDao;
	
	@Override
	public DictypesEntity queryObject(Integer dictypeid){
		return dictypesDao.queryObject(dictypeid);
	}
	
	@Override
	public List<DictypesEntity> queryList(Map<String, Object> map){
		return dictypesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dictypesDao.queryTotal(map);
	}
	
	@Override
	public void save(DictypesEntity dictypes){
		dictypesDao.save(dictypes);
	}
	
	@Override
	public void update(DictypesEntity dictypes){
		dictypesDao.update(dictypes);
	}
	
	@Override
	public void delete(Integer dictypeid){
		dictypesDao.delete(dictypeid);
	}
	
	@Override
	public void deleteBatch(Integer[] dictypeids){
		dictypesDao.deleteBatch(dictypeids);
	}

	@Override
	public List<DictypesEntity> queryTypeNames() {
		return dictypesDao.queryTypeNames();
	}

}
